<%@ Page Title="" Language="VB" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage(Of IEnumerable (Of CupsApp.Data.cups_Client))" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	ShowClient
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>ShowClient</h2>

    <p>
        <%=Html.ActionLink("Create New", "Create")%>
    </p>
    
    <table>
        <tr>
            <th></th>
            <th>
                ID
            </th>
            <th>
                FirstName
            </th>
            <th>
                MiddleName
            </th>
            <th>
                LastName
            </th>
            <th>
                Saluation
            </th>
            <th>
                Suffix
            </th>
            <th>
                Alias
            </th>
            <th>
                BirthDate
            </th>
            <th>
                Gender
            </th>
            <th>
                IdentificationType
            </th>
            <th>
                Sin
            </th>
            <th>
                Phone
            </th>
            <th>
                UpdatedOn
            </th>
            <th>
                UpdateBy
            </th>
            <th>
                ApplicationID
            </th>
        </tr>

    <% For Each item In Model%>
    
        <tr>
            <td>
                <%=Html.ActionLink("Edit", "Edit", New With {.id = item.ID})%> |
                <%=Html.ActionLink("Details", "Details", New With {.id = item.ID})%>
            </td>
            <td>
                <%= Html.Encode(item.ID) %>
            </td>
            <td>
                <%= Html.Encode(item.FirstName) %>
            </td>
            <td>
                <%= Html.Encode(item.MiddleName) %>
            </td>
            <td>
                <%= Html.Encode(item.LastName) %>
            </td>
            <td>
                <%= Html.Encode(item.Saluation) %>
            </td>
            <td>
                <%= Html.Encode(item.Suffix) %>
            </td>
            <td>
                <%= Html.Encode(item.Alias) %>
            </td>
            <td>
                <%= Html.Encode(String.Format("{0:g}", item.BirthDate)) %>
            </td>
            <td>
                <%= Html.Encode(item.Gender) %>
            </td>
            <td>
                <%= Html.Encode(item.IdentificationType) %>
            </td>
            <td>
                <%= Html.Encode(item.Sin) %>
            </td>
            <td>
                <%= Html.Encode(item.Phone) %>
            </td>
            <td>
                <%= Html.Encode(String.Format("{0:g}", item.UpdatedOn)) %>
            </td>
            <td>
                <%= Html.Encode(item.UpdateBy) %>
            </td>
            <td>
                <%= Html.Encode(item.ApplicationID) %>
            </td>
        </tr>
    
    <% Next%>

    </table>

</asp:Content>

